package cn.codergege.demo.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/progress")
public class ProgressHandler {
    private final Logger log = LoggerFactory.getLogger(ProgressHandler.class);

    @RequestMapping("/demo1")
    public String goResult() {
        try {
            Thread.sleep(1000*30);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return "progress/result";
    }
}
